package ywpt.service.config;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.QuyuInfo;

public interface QuyuService {

	public abstract QuyuInfo getQuyuInfoById(Long id);

	public abstract int getQuyuInfoCountByCriteria(DetachedCriteria query);

	public abstract List<QuyuInfo> getQuyuInfos(
			DetachedCriteria query, int pageSize, int startIndex);

	public abstract String createQuyuCode();

	public abstract void saveQuyuInfo(QuyuInfo quyuInfo);

	public abstract void updatQuyuInfo(QuyuInfo quyuInfo);

	public abstract void removeQuyuInfo(Long id);

	public abstract List<QuyuInfo> getQuyuInfos();
	
	public abstract List<QuyuInfo> getQuyuInfos(DetachedCriteria query);

}
